Add option to selectively disable deprecation warnings#18641
Add option to selectively disable deprecation warnings#18641hauntsaninja merged 1 commit intopython:masterfrom
Conversation
|
Diff from mypy_primer, showing the effect of this PR on open source code: django-stubs (https://github.com/typeddjango/django-stubs): 1.44x faster (35.2s -> 24.4s in a single noisy sample)
|
| Selectively excludes functions and methods defined in specific packages, | ||
| modules, and classes from the :ref:`deprecated<code-deprecated>` error code. | ||
| This also applies to all submodules of packages (i.e. everything inside | ||
| a given prefix). Note, this option does not support per-file configuration, |
There was a problem hiding this comment.
Maybe end with ";" instead of ","?
There was a problem hiding this comment.
Tbh I mostly copied the contents from the untyped_calls_exclude option. So I'd leave it as is. https://mypy.readthedocs.io/en/stable/config_file.html#confval-untyped_calls_exclude
Yeah, added it to the PR description. Btw. I'm open to suggestion for a better option name. |
hauntsaninja
left a comment
There was a problem hiding this comment.
Cool, want to make a changelog entry as well?
Yeah, let's do that in a followup if that's all right. I've a few more topics in mind for already merged PRs. E.g. different property getter / setter types, stubgen decorator improvements, mypyc support for frozenset. |
Create changelog entries for - python#18510 - python#18641
Create changelog entries for - python#18510 - python#18641
Create changelog entries for - python#18510 - python#18641
Suggested in #18192 (comment)
Fixes #18435